package com.lyncs.ods.modules.txn.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 结算单单账款信息表
 * </p>
 *
 * @author alex
 * @since 2022-04-27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("settlement_bill_info")
@ApiModel(value = "SettlementBillInfo对象", description = "结算单单账款信息表")
public class SettlementBillInfo implements Serializable {

    @ApiModelProperty("自增主键id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("结算单id")
    @TableField("settlement_id")
    private Long settlementId;

    @ApiModelProperty("交付单id")
    @TableField("deliver_id")
    private Long deliverId;

    @ApiModelProperty("交付单账款id")
    @TableField("deliver_bill_id")
    private Long deliverBillId;

    @ApiModelProperty("本次结算金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("结算时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("标签信息")
    @TableField(value = "tag_info", updateStrategy = FieldStrategy.IGNORED)
    private String tagInfo;

    @ApiModelProperty("状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("创建者所属企业ID ")
    @TableField("creator")
    private Long creator;

    @ApiModelProperty("创建者所属企业ID ")
    @TableField("creator_company_id")
    private Long creatorCompanyId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
